package com.emser.unc.client.event;

import com.emser.unc.client.presenter.SellerPresenter;
import com.google.gwt.event.shared.GwtEvent;

public class EditCustomerListEvent extends GwtEvent<EditCustomerListEventHandler> {
	public static Type<EditCustomerListEventHandler> TYPE = new Type<EditCustomerListEventHandler>();
	private SellerPresenter sp;
	
	public EditCustomerListEvent(SellerPresenter sp) {
		this.setSp(sp);
	}
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EditCustomerListEventHandler> getAssociatedType() {
		return TYPE;
	}
	@Override
	protected void dispatch(EditCustomerListEventHandler handler) {
		handler.onEdit(this);	
	}
	public void setSp(SellerPresenter sp) {
		this.sp = sp;
	}
	public SellerPresenter getSp() {
		return sp;
	}
}
